-- GENERATED SPELL FOR [Blackhand Assassin] --


function spell0_10318(pUnit, Event) --@Backstab,n/a--
pUnit:FullCastSpellOnTarget(15582,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10318', 656, 1)
end

function spell1_10318(pUnit, Event) --@Gouge,n/a--
pUnit:FullCastSpellOnTarget(12540,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10318', 4338, 1)
end

function spell2_10318(pUnit, Event) --@Slice and Dice,Self--
pUnit:FullCastSpellOnTarget(6434,pUnit)
pUnit:RegisterEvent('Sorts_10318', 10277, 1)
end

function Sorts_10318(pUnit, Event)
local choix_sorts_10318 = math.random(0, 2)
if choix_sorts_10318 == 0 then
pUnit:RegisterEvent('spell0_10318', 1, 1)
end
if choix_sorts_10318 == 1 then
pUnit:RegisterEvent('spell1_10318', 1, 1)
end
if choix_sorts_10318 == 2 then
pUnit:RegisterEvent('spell2_10318', 1, 1)
end
end

function mob10318_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10318', math.random(1500, 3000), 1)
end

function mob10318_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10318_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10318_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10318, 1, 'mob10318_Action')
RegisterUnitEvent(10318, 2, 'mob10318_Leave')
RegisterUnitEvent(10318, 3, 'mob10318_Kill')
RegisterUnitEvent(10318, 4, 'mob10318_Die')
